﻿namespace CompositePattern;

public class DomainLeaf : AbstractDomain
{
    public override void Commission(double total)
    {
        double result = total * Percent / 100;
        Console.WriteLine($"This {Name} 提成 {result}");
    }
}
